from flask_sqlalchemy import SQLAlchemy
from flask_jwt_extended import JWTManager
from app.core.BaseQuery import TenantQuery

# 注意：不要在这里引入 TenantQuery
db = SQLAlchemy(query_class = TenantQuery)
jwt = JWTManager()


def init_extensions(app):
    db.init_app(app)
    jwt.init_app(app)
